<%@ page language="java"
	import="java.util.*,com.opensymphony.xwork2.util.*"
	pageEncoding="UTF-8"%>
<%@ taglib prefix="s" uri="/struts-tags"%>
<%
	String path = request.getContextPath();
	String basePath = request.getScheme() + "://"
			+ request.getServerName() + ":" + request.getServerPort()
			+ path + "/";
%>

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
<base href="<%=basePath%>">
<!-- 疫苗猪舍查询 +删+改-->
<title>疫苗注射查询</title>

<meta http-equiv="pragma" content="no-cache">
<meta http-equiv="cache-control" content="no-cache">
<meta http-equiv="expires" content="0">
<meta http-equiv="keywords" content="keyword1,keyword2,keyword3">
<meta http-equiv="description" content="This is my page">
<!--
	<link rel="stylesheet" type="text/css" href="styles.css">
	-->
</head>
<body>
	<s:property value="tip" />
	<s:form action="chulanchaxun2">
		<s:select name="jiaoyi_to" list="#session.buyermap" listKey="key"
			listValue="value" label="买家" />
		<s:textfield name="jiaoyi_time" label="交易时间" />
		<s:textfield name="price" label="单价" />
		<s:textfield name="sum_of_price" label="总价" />
		<s:select name="fz_person" list="#session.yuangongmap" listKey="key"
			listValue="value" label="负责人" />
		<s:textfield name="eb_id" label="耳标号" />
		<s:textfield name="chulan_weight" label="出栏体重" />
		<s:submit value="查找" />
	</s:form>
	<s:form action="" method="post">
		<tr>
			<td>出栏批次</td>
			<td>耳标号</td>
			<td>单价</td>
			<td>出栏体重</td>
			<td>总价</td>
			<td>交易时间</td>
			<td>买家</td>
			<td>负责人</td>
			<td>操作</td>			
		</tr>
		<s:iterator value="resultList" status="index" id="l">
			<s:if test="#index.odd == true">
				<tr style="background-color: #FFFF00">
			</s:if>
			<s:else>
				<tr>
			</s:else>
				<td><s:property value="#l.ID" /> </td>
				<td><s:property value="#l.EB_ID" /> </td>				
				<td><s:property value="#l.price" /></td>
				<td><s:property value="#l.chulan_weight" /></td>	
				<td><s:property value="#l.sum_of_price" /></td>
				<td><s:property value="#l.jiaoyi_time" /></td>
				<td><s:property value="#l.jiaoyi_to" /></td>
				<td><s:property value="#l.FZ_Person" /></td>					
				<td>
				<a href="chulanshanchu?eb_id=<s:property value="#l.EB_ID"/>&id=<s:property value="#l.ID"/>">删除</a>
				<a href="chulanxiugai_pre?id=<s:property value="#l.ID"/>
				&eb_id=<s:property value="#l.EB_ID"/>
				&price=<s:property value="#l.price"/>
				&sum_of_price=<s:property value="#l.sum_of_price"/>
				&jiaoyi_time=<s:property value="#l.jiaoyi_time"/>
				&jiaoyi_to=<s:property value="#l.jiaoyi_to"/>
				&fz_person=<s:property value="#l.FZ_Person"/>
				&chulan_weight=<s:property value="#l.chulan_weight"/>"
				>修改</a>
				</td>
		</s:iterator>
	</s:form>	
</body>
</html>
